Introduce 'coroutine'/'suspend' modifiers

This commit is contained in:
Denis Zharkov
2016-05-16 18:39:02 +03:00
parent 38d74a16fe
commit 329fb9d619
62 changed files with 263 additions and 17 deletions
@@ -40,4 +40,5 @@ class MouseMovedEventArgs
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -34,4 +34,5 @@ class B {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
+1
View File
@@ -39,4 +39,5 @@ class A {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -38,4 +38,5 @@ var a : Int
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -25,4 +25,5 @@ annotation class Test {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -37,4 +37,5 @@ public class Test {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -31,4 +31,5 @@ class TestClass {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -25,6 +25,7 @@ enum class Test {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// EXIST: fun
/* TODO: items below are not valid here */
@@ -27,4 +27,5 @@ interface Test {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -8,6 +8,7 @@ class TestSample() {
// EXIST: vararg
// EXIST: noinline
// EXIST: crossinline
// EXIST: coroutine
/* TODO: val&var are not correct */
// EXIST: val
// EXIST: var
@@ -28,4 +28,5 @@ object Test {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -14,7 +14,7 @@ class TestSample(<caret>)
// EXIST: private
// EXIST: protected
// EXIST: internal
// EXIST: coroutine
/* TODO: keywords below should not be here*/
// EXIST: abstract
// EXIST: const
@@ -5,6 +5,7 @@ fun test(<caret>) {
// EXIST: vararg
// EXIST: noinline
// EXIST: crossinline
// EXIST: coroutine
/* TODO: they all are not correct */
// EXIST: val
// EXIST: var
@@ -25,4 +25,5 @@ package Test
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -39,4 +39,5 @@ class Some {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -39,4 +39,5 @@ class Some {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
@@ -37,4 +37,5 @@ class Some {
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE
+1
View File
@@ -24,4 +24,5 @@
// EXIST: external
// EXIST: annotation class
// EXIST: const
// EXIST: suspend
// NOTHING_ELSE