[Tests] Test samples from KEEP
This commit is contained in:
committed by
TeamCityServer
parent
b0a7be72e8
commit
d8faa9686d
+20
@@ -0,0 +1,20 @@
|
||||
class View
|
||||
|
||||
context(View) val Int.dp get() = 42 * this
|
||||
|
||||
fun View.f() {
|
||||
123.dp
|
||||
with(123) {
|
||||
dp
|
||||
}
|
||||
}
|
||||
|
||||
fun Int.g(v: View) {
|
||||
with(v) {
|
||||
dp
|
||||
}
|
||||
}
|
||||
|
||||
fun h() {
|
||||
123.<!NO_CONTEXT_RECEIVER!>dp<!>
|
||||
}
|
||||
Reference in New Issue
Block a user