Add basic FIR -> IR converter with a set of text tests

Tests duplicate IrTextTestCaseGenerated
#KT-24065 Fixed
This commit is contained in:
Mikhail Glukhikh
2019-04-05 13:37:48 +03:00
parent 92adfd8946
commit 881073b1c9
305 changed files with 22829 additions and 57 deletions
@@ -0,0 +1,11 @@
FILE fqName:<root> fileName:/catchParameterAccess.kt
FUN name:test visibility:public modality:FINAL <> (f:kotlin.Function0) returnType:IrErrorType
VALUE_PARAMETER name:f index:0 type:kotlin.Function0
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun test (f: kotlin.Function0): IrErrorType declared in <root>'
TRY type=IrErrorType
try: ERROR_CALL 'Unresolved reference: <Unresolved name: f>#' type=IrErrorType
CATCH parameter=val e: java.lang.Exception [val] declared in <root>.test
VAR name:e type:java.lang.Exception [val]
THROW type=kotlin.Nothing
GET_VAR 'val e: java.lang.Exception [val] declared in <root>.test' type=java.lang.Exception origin=null