We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b519258 commit 27d08b6Copy full SHA for 27d08b6
tests/neg/given-triangle.check
@@ -1,4 +1,4 @@
1
--- [E172] Type Error: tests/neg/given-triangle.scala:14:18 -------------------------------------------------------------
2
-14 |@main def Test = f // error
+-- [E172] Type Error: tests/neg/given-triangle.scala:15:18 -------------------------------------------------------------
+15 |@main def Test = f // error
3
| ^
4
|Ambiguous given instances: both given instance given_B and given instance given_C match type A of parameter a of method f
tests/neg/given-triangle.scala
@@ -1,3 +1,4 @@
+//> using -source 3.5
class A
class B extends A
class C extends A
0 commit comments