From 441bef9935fe26b637db7f7003ec9e67495eae2f Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Wed, 4 May 2011 14:21:45 +0400 Subject: [PATCH] JET-9 Support hasBackingField for properties which are parameters of the primary constructor --- .../checker/infos/PropertiesWithBackingFields.jet | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/idea/testData/checker/infos/PropertiesWithBackingFields.jet b/idea/testData/checker/infos/PropertiesWithBackingFields.jet index 0890c3910a7..5b9279611b4 100644 --- a/idea/testData/checker/infos/PropertiesWithBackingFields.jet +++ b/idea/testData/checker/infos/PropertiesWithBackingFields.jet @@ -33,4 +33,18 @@ class Test() { var v5 : Int get() = 1; set(x){$v5 = x} var v6 : Int get() = $v6 + 1; set(x){} +} + +open class Super(i : Int) + +class TestPCParameters(w : Int, x : Int, val y : Int, var z : Int) : Super(w) { + + val xx = w + + { + w + 1 + } + + fun foo() = x + } \ No newline at end of file