[Tests] Test samples from KEEP
This commit is contained in:
committed by
TeamCityServer
parent
b0a7be72e8
commit
d8faa9686d
+17
@@ -0,0 +1,17 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
interface Canvas
|
||||
|
||||
interface Shape {
|
||||
context(Canvas)
|
||||
fun draw(): Unit
|
||||
}
|
||||
|
||||
class Circle : Shape {
|
||||
context(Canvas)
|
||||
override fun draw() {}
|
||||
}
|
||||
|
||||
object MyCanvas : Canvas
|
||||
|
||||
fun test() = with(MyCanvas) { Circle().draw() }
|
||||
Reference in New Issue
Block a user