Skip to content

Commit 887fbc4

Browse files
committed
Fix rebase breakage
1 parent 94bc6fe commit 887fbc4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ trait Applications extends Compatibility {
17911791
* a. always as good as a method or a polymorphic method.
17921792
* b. as good as a member of any other type `tp2` if `asGoodValueType(tp1, tp2) = true`
17931793
*/
1794-
def isAsGood(alt1: TermRef, tp1: Type, alt2: TermRef, tp2: Type): Boolean = trace(i"isAsSpecific $tp1 $tp2", overload) {
1794+
def isAsGood(alt1: TermRef, tp1: Type, alt2: TermRef, tp2: Type): Boolean = trace(i"isAsGood $tp1 $tp2", overload) {
17951795
tp1 match
17961796
case tp1: MethodType => // (1)
17971797
tp1.paramInfos.isEmpty && tp2.isInstanceOf[LambdaType]

tests/neg/cb-companion-leaks.check

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- [E194] Type Error: tests/neg/cb-companion-leaks.scala:9:23 ----------------------------------------------------------
1+
-- [E195] Type Error: tests/neg/cb-companion-leaks.scala:9:23 ----------------------------------------------------------
22
9 | def foo[A: {C, D}] = A // error
33
| ^
44
| context bound companion value A cannot be used as a value
@@ -20,7 +20,7 @@
2020
| companion value with the (term-)name `A`. However, these context bound companions
2121
| are not values themselves, they can only be referred to in selections.
2222
---------------------------------------------------------------------------------------------------------------------
23-
-- [E194] Type Error: tests/neg/cb-companion-leaks.scala:13:10 ---------------------------------------------------------
23+
-- [E195] Type Error: tests/neg/cb-companion-leaks.scala:13:10 ---------------------------------------------------------
2424
13 | val x = A // error
2525
| ^
2626
| context bound companion value A cannot be used as a value
@@ -42,7 +42,7 @@
4242
| companion value with the (term-)name `A`. However, these context bound companions
4343
| are not values themselves, they can only be referred to in selections.
4444
--------------------------------------------------------------------------------------------------------------------
45-
-- [E194] Type Error: tests/neg/cb-companion-leaks.scala:15:9 ----------------------------------------------------------
45+
-- [E195] Type Error: tests/neg/cb-companion-leaks.scala:15:9 ----------------------------------------------------------
4646
15 | val y: A.type = ??? // error
4747
| ^
4848
| context bound companion value A cannot be used as a value

0 commit comments

Comments
 (0)