No override check in FirClassUseSiteScope, fix nasty substitution bug
This fixes MPP override test (see mppFakeOverride in FirMultiModuleResolveTestGenerated)
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
class B : A() {
|
||||
override fun foo(): B = this
|
||||
fun bar(): B = this // Ambiguity, no override here
|
||||
fun bar(): B = this // Here we should have "missing override" but no ambiguity
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
|
||||
@@ -12,7 +12,7 @@ FILE: B.kt
|
||||
|
||||
public final function test(): R|kotlin/Unit| {
|
||||
R|/B.foo|()
|
||||
<Ambiguity: bar, [/B.bar, /A.bar]>#()
|
||||
R|/B.bar|()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user