From 0198cc8ac967090a1cf02165fd3933cc5d885b18 Mon Sep 17 00:00:00 2001 From: Tom Grigg Date: Sat, 30 Jan 2021 10:51:01 -0800 Subject: [PATCH] Add regression tests for #9283 #9284 #9288 #9293 --- tests/fuzzy/i9283.scala | 7 +++++++ tests/fuzzy/i9284.scala | 7 +++++++ tests/fuzzy/i9288.scala | 10 ++++++++++ tests/fuzzy/i9293.scala | 6 ++++++ 4 files changed, 30 insertions(+) create mode 100644 tests/fuzzy/i9283.scala create mode 100644 tests/fuzzy/i9284.scala create mode 100644 tests/fuzzy/i9288.scala create mode 100644 tests/fuzzy/i9293.scala diff --git a/tests/fuzzy/i9283.scala b/tests/fuzzy/i9283.scala new file mode 100644 index 000000000000..816ef5e34777 --- /dev/null +++ b/tests/fuzzy/i9283.scala @@ -0,0 +1,7 @@ +// AE-77a004382f0de9965cb3880b27f302eb1c885c48 +object Foo { + class A + def f(x: A): Unit = x { } // This error is necessary. +} +case class Foo() +type Foo = Any diff --git a/tests/fuzzy/i9284.scala b/tests/fuzzy/i9284.scala new file mode 100644 index 000000000000..6d410c23a255 --- /dev/null +++ b/tests/fuzzy/i9284.scala @@ -0,0 +1,7 @@ +// TUATE-a0aa3e4143e63305db9ebacb6165df0155d73bbd +object Foo { + class Bar + Bar[String][Int] +} + +class i0 { i0 [String][Int] } diff --git a/tests/fuzzy/i9288.scala b/tests/fuzzy/i9288.scala new file mode 100644 index 000000000000..45e8d0a5949d --- /dev/null +++ b/tests/fuzzy/i9288.scala @@ -0,0 +1,10 @@ +// AE-de752a30942c1949a413940222cd9e573e5aa6a4 +class Foo { + import annotation.static + class Bar + object Bar { + @static val x = 2 + } + import Bar._ + x +} diff --git a/tests/fuzzy/i9293.scala b/tests/fuzzy/i9293.scala new file mode 100644 index 000000000000..07bf83595601 --- /dev/null +++ b/tests/fuzzy/i9293.scala @@ -0,0 +1,6 @@ +class Foo[X] { + def foo: X[X] = foo(null) +} +object Foo { + implicit def baz[X](arg: X): Foo[X] = ??? +}