Skip to content

Commit

Permalink
Added expect and actual keywords, fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz committed Nov 5, 2018
1 parent 5b05471 commit 305a403
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ast-psi/src/test/resources/localTestData/expectActual.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

expect class Foo {
fun bar(): String
}

actual class Foo {
actual fun bar(): String = "baz"
}
3 changes: 2 additions & 1 deletion ast/ast-common/src/main/kotlin/kastree/ast/Node.kt
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ sealed class Node {
ABSTRACT, FINAL, OPEN, ANNOTATION, SEALED, DATA, OVERRIDE, LATEINIT, INNER,
PRIVATE, PROTECTED, PUBLIC, INTERNAL,
IN, OUT, NOINLINE, CROSSINLINE, VARARG, REIFIED,
TAILREC, OPERATOR, INFIX, INLINE, EXTERNAL, SUSPEND, CONST
TAILREC, OPERATOR, INFIX, INLINE, EXTERNAL, SUSPEND, CONST,
ACTUAL, EXPECT
}
}

Expand Down

0 comments on commit 305a403

Please sign in to comment.