aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i503.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i503.scala')
-rw-r--r--tests/pos/i503.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/pos/i503.scala b/tests/pos/i503.scala
index 93f275c4d..fd25dc979 100644
--- a/tests/pos/i503.scala
+++ b/tests/pos/i503.scala
@@ -3,7 +3,11 @@ class HelloWorld {
object TypeBool;
class Fct {
- def g(x : Int) = TypeBool // breaks.
+ def g(x : Int) = TypeBool
+ }
+
+ trait Fct2 {
+ def g(x : Int) = TypeBool
}
}
}