aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/pos/t1237.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/pos/t1237.scala')
-rw-r--r--tests/disabled/pos/t1237.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/disabled/pos/t1237.scala b/tests/disabled/pos/t1237.scala
new file mode 100644
index 000000000..31ba2966a
--- /dev/null
+++ b/tests/disabled/pos/t1237.scala
@@ -0,0 +1,14 @@
+class HelloWorld {
+ def main(args: Array[String]): Unit = {
+
+ object TypeBool;
+
+ trait Fct {
+ def g(x : Int) = TypeBool // breaks.
+
+ // def g(x : Int) = 3 // fine.
+ }
+
+ ()
+ }
+}