[FE] Provide overloadability for candidates with different CR
This commit is contained in:
committed by
TeamCityServer
parent
155e7b211b
commit
a091b345a0
+17
@@ -0,0 +1,17 @@
|
||||
// !LANGUAGE: +ContextReceivers
|
||||
|
||||
context(Int, String)
|
||||
fun foo(): Int {
|
||||
return this@Int + 42
|
||||
}
|
||||
|
||||
context(Int)
|
||||
fun foo(): Int {
|
||||
return this@Int + 42
|
||||
}
|
||||
|
||||
fun test() {
|
||||
with(42) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user