From 955b04a41ccefeac6bfec0158991c152165be6eb Mon Sep 17 00:00:00 2001 From: VladimirNik Date: Thu, 18 Feb 2016 18:10:35 +0100 Subject: Adapt neg tests to new neg tests checks --- tests/neg/subtyping.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/neg/subtyping.scala') diff --git a/tests/neg/subtyping.scala b/tests/neg/subtyping.scala index 03ff39be4..ff3c7a519 100644 --- a/tests/neg/subtyping.scala +++ b/tests/neg/subtyping.scala @@ -5,10 +5,10 @@ class A extends B object Test { def test1(): Unit = { - implicitly[B#X <:< A#X] // error - } + implicitly[B#X <:< A#X] // error: no implicit argument + } // error: no implicit argument def test2(): Unit = { - val a : { type T; type U } = ??? // error // error - implicitly[a.T <:< a.U] // error + val a : { type T; type U } = ??? // error // error + implicitly[a.T <:< a.U] // error: no implicit argument } } -- cgit v1.2.3