From 5f7ac1a777b273eef11e761bd84c753d73545b89 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Wed, 16 Nov 2016 18:08:23 +0100 Subject: add tests for #1701 --- tests/neg/i1701.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/neg/i1701.scala (limited to 'tests') diff --git a/tests/neg/i1701.scala b/tests/neg/i1701.scala new file mode 100644 index 000000000..523191000 --- /dev/null +++ b/tests/neg/i1701.scala @@ -0,0 +1,3 @@ +trait Foo { + def test (x : test) : Int +} \ No newline at end of file -- cgit v1.2.3 From 2cd44974e49776f64939bec3727e2d01cc746bf2 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Wed, 16 Nov 2016 23:54:52 +0100 Subject: fix failing test --- tests/neg/i1643.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/neg/i1643.scala b/tests/neg/i1643.scala index d836a4255..889233b3a 100644 --- a/tests/neg/i1643.scala +++ b/tests/neg/i1643.scala @@ -1,4 +1,4 @@ -trait T extends Array { +trait T extends Array { // error def t1(as: String*): Array[String] = { varargs1(as: _*) } // error def t2(as: String*): Array[String] = { super.varargs1(as: _*) } // error } -- cgit v1.2.3 From 51be882adb6f055c1cf924167f8fab7edb82d721 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Thu, 17 Nov 2016 08:22:57 +0100 Subject: fix neg test i1701.scala --- tests/neg/i1701.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/neg/i1701.scala b/tests/neg/i1701.scala index 523191000..6b5e04692 100644 --- a/tests/neg/i1701.scala +++ b/tests/neg/i1701.scala @@ -1,3 +1,5 @@ trait Foo { - def test (x : test) : Int -} \ No newline at end of file + def test (x : test) : Int // error: not found test + def f(x : src) : Int // error + def g(x : src.project) : Int // error +} -- cgit v1.2.3