Skip to content

Commit

Permalink
Fix -source for neg test
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored and WojciechMazur committed Jul 10, 2024
1 parent ec87e7d commit 3e1ed72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/neg/given-triangle.check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- [E172] Type Error: tests/neg/given-triangle.scala:14:18 -------------------------------------------------------------
14 |@main def Test = f // error
-- [E172] Type Error: tests/neg/given-triangle.scala:15:18 -------------------------------------------------------------
15 |@main def Test = f // error
| ^
|Ambiguous given instances: both given instance given_B and given instance given_C match type A of parameter a of method f
1 change: 1 addition & 0 deletions tests/neg/given-triangle.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//> using -source 3.5
class A
class B extends A
class C extends A
Expand Down

0 comments on commit 3e1ed72

Please sign in to comment.