Skip to content

Commit 27d08b6

Browse files
committed
Fix -source for neg test
1 parent b519258 commit 27d08b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: tests/neg/given-triangle.check

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- [E172] Type Error: tests/neg/given-triangle.scala:14:18 -------------------------------------------------------------
2-
14 |@main def Test = f // error
1+
-- [E172] Type Error: tests/neg/given-triangle.scala:15:18 -------------------------------------------------------------
2+
15 |@main def Test = f // error
33
| ^
44
|Ambiguous given instances: both given instance given_B and given instance given_C match type A of parameter a of method f

Diff for: tests/neg/given-triangle.scala

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//> using -source 3.5
12
class A
23
class B extends A
34
class C extends A

0 commit comments

Comments
 (0)