From 3c24530b67bf8d75b2cef13a50cf2e62fe546f27 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 17 Nov 2011 17:22:52 +0400 Subject: [PATCH] more tests for backing fields --- .../quick/backingField/CustomGetValGlobal.jet | 5 +++++ .../ReadNonexistentAbstractPropertyInAnonymous.jet | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 compiler/testData/checkerWithErrorTypes/quick/backingField/CustomGetValGlobal.jet create mode 100644 compiler/testData/checkerWithErrorTypes/quick/backingField/ReadNonexistentAbstractPropertyInAnonymous.jet diff --git a/compiler/testData/checkerWithErrorTypes/quick/backingField/CustomGetValGlobal.jet b/compiler/testData/checkerWithErrorTypes/quick/backingField/CustomGetValGlobal.jet new file mode 100644 index 00000000000..6962636adec --- /dev/null +++ b/compiler/testData/checkerWithErrorTypes/quick/backingField/CustomGetValGlobal.jet @@ -0,0 +1,5 @@ +namespace customGetValGlobal { + val zz = 1 + get() = $zz * 2 + +} diff --git a/compiler/testData/checkerWithErrorTypes/quick/backingField/ReadNonexistentAbstractPropertyInAnonymous.jet b/compiler/testData/checkerWithErrorTypes/quick/backingField/ReadNonexistentAbstractPropertyInAnonymous.jet new file mode 100644 index 00000000000..31ecbc026b3 --- /dev/null +++ b/compiler/testData/checkerWithErrorTypes/quick/backingField/ReadNonexistentAbstractPropertyInAnonymous.jet @@ -0,0 +1,7 @@ +abstract class ReadNonexistent() { + abstract val aa: Int + + { + val x = $aa + } +}