From dda5759643a42dc5a28e2408240286d1d957db26 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Thu, 10 Nov 2011 15:42:14 +0300 Subject: [PATCH] More tests for KT-451 Incorrect character literals cause assertion failures --- .../quick/IncorrectCharacterLiterals.jet | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/compiler/testData/checkerWithErrorTypes/quick/IncorrectCharacterLiterals.jet b/compiler/testData/checkerWithErrorTypes/quick/IncorrectCharacterLiterals.jet index e115b7ca23c..fcc34e9e44f 100644 --- a/compiler/testData/checkerWithErrorTypes/quick/IncorrectCharacterLiterals.jet +++ b/compiler/testData/checkerWithErrorTypes/quick/IncorrectCharacterLiterals.jet @@ -1,6 +1,23 @@ // http://youtrack.jetbrains.net/issue/KT-451 +// KT-451 Incorrect character literals cause assertion failures fun ff() { val b = '' val c = '23' } + +fun test() { + 'a' + '\n' + '\t' + '\b' + '\r' + '\"' + '\'' + '\\' + '\$' + '\x' + '\123' + '\ra' + '\000' +} \ No newline at end of file