File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ object Applications {
210
210
case Select (receiver, _) => receiver
211
211
case mr => mr.tpe.normalizedPrefix match {
212
212
case mr : TermRef => ref(mr)
213
+ case mr : ThisType => singleton(mr)
213
214
case mr =>
214
215
if testOnly then
215
216
// In this case it is safe to skolemize now; we will produce a stable prefix for the actual call.
Original file line number Diff line number Diff line change
1
+
2
+ package TestFoo
3
+ extension (text : String ) def foo (defaultArg : Boolean = true ) : String = " "
4
+
5
+ // def foo(text : String) (defaultArg : Boolean = true) : String = ""
Original file line number Diff line number Diff line change
1
+
2
+ package TestFoo
3
+
4
+ val f = " 123" .foo() // error
You can’t perform that action at this time.
0 commit comments