From e5315cce416c665d7c6d2740d171343829b30f4c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 16 Aug 2016 18:34:36 +0200 Subject: Fix #1444: Add implicit arguments to supertraits If a super trait is given as a type (i.e. no argument list), implicit args were not passed. This is fixed now. Also, we now check for parameterized traits lacking type arguments in Typer instead of in Mixin. Fixes #1444. --- tests/run/i1263.scala | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/run/i1263.scala') diff --git a/tests/run/i1263.scala b/tests/run/i1263.scala index 630e5758e..e97606ef6 100644 --- a/tests/run/i1263.scala +++ b/tests/run/i1263.scala @@ -2,10 +2,8 @@ object Test { trait Foo(val s: String) val foo1 = new Foo("bar") {} - val foo2 = new Foo { override val s = "bar" } def main(args: Array[String]): Unit = { assert(foo1.s == "bar") - assert(foo2.s == "bar") } } object Test1 { @@ -22,7 +20,6 @@ object Test2 { trait Foo(protected val s: String) val foo1 = new Foo("bar") {} - val foo2 = new Foo { override val s = "bar" } } object Test3 { trait Foo(final val s: String) -- cgit v1.2.3