[FE] Resolve overload conflict between contextual and non-contextual declarations
This commit is contained in:
committed by
TeamCityServer
parent
7fd5034cd6
commit
f427265739
+12
@@ -0,0 +1,12 @@
|
||||
class Context
|
||||
|
||||
context(Context)
|
||||
fun f(): String = TODO()
|
||||
|
||||
fun f(): Any = TODO()
|
||||
|
||||
fun test() {
|
||||
with(Context()) {
|
||||
f().length
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user