[Tests] Add CompileKotlinAgainstCustomBinaries test for CR
This commit is contained in:
committed by
teamcity
parent
a86b4d767e
commit
87b0670bbb
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
context(Int) val p get() = 42
|
||||
|
||||
context(Int)
|
||||
class A {
|
||||
context(Int) val p get() = 42
|
||||
|
||||
context(Int) fun m() {}
|
||||
}
|
||||
|
||||
context(String)
|
||||
fun f() {
|
||||
println(this@String)
|
||||
}
|
||||
|
||||
fun ordinary() {
|
||||
println("I do not require context receivers!")
|
||||
}
|
||||
Reference in New Issue
Block a user