From 517fb64d2227bee1a54921110adf530c892e4b29 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 20 Sep 2011 06:48:26 -0500 Subject: [PATCH] KT-306 Ambiguity when different this's have same-looking functions Test added --- .../quick/regressions/kt306.jet | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 idea/testData/checkerWithErrorTypes/quick/regressions/kt306.jet 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() {} +}