From 14d506a86f5920ac50777f1bbb7aade0557d6122 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 4 May 2015 10:51:56 +0200 Subject: New tests Added test for previous PR on super accessors. Updated test for #503 to check both inner classes and inner traits. --- tests/pos/i503.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/pos/i503.scala') 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 } } } -- cgit v1.2.3