diff --git a/idea/testData/checkerWithErrorTypes/quick/regressions/kt306.jet b/idea/testData/checkerWithErrorTypes/quick/regressions/kt306.jet new file mode 100644 index 00000000000..4356fe5e10c --- /dev/null +++ b/idea/testData/checkerWithErrorTypes/quick/regressions/kt306.jet @@ -0,0 +1,22 @@ +// KT-306 Ambiguity when different this's have same-looking functions + +fun test() { + {Foo.() => + bar() + {Barr.() => + this.bar() + bar() + } + } + {Barr.() => + bar() + } +} + +class Foo { + fun bar() {} +} + +class Barr { + fun bar() {} +}