diff options
Diffstat (limited to 'test/files/pos/t1237.scala')
-rw-r--r-- | test/files/pos/t1237.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t1237.scala b/test/files/pos/t1237.scala new file mode 100644 index 0000000000..7777372138 --- /dev/null +++ b/test/files/pos/t1237.scala @@ -0,0 +1,14 @@ +class HelloWorld { + def main(args: Array[String]) { + + object TypeBool; + + trait Fct { + def g(x : Int) = TypeBool // breaks. + + // def g(x : Int) = 3 // fine. + } + + () + } +} |