-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mark type parameter lists and type argument lists as experiment…
…al (#755) Closes #753 ### Summary of Changes Mark type parameter lists and type argument lists as experimental. This also applies to the contained type parameters and type arguments.
- Loading branch information
1 parent
e60e456
commit f1a052a
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...tests/resources/validation/experimental language feature/type argument lists/main.sdstest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
package tests.validation.experimentalLanguageFeature.typeArgumentLists | ||
|
||
// $TEST$ warning "Type argument lists & type arguments are experimental and may change without prior notice." | ||
class MyClass1(p: MyClass1»<>«) | ||
|
||
// $TEST$ no warning "Type argument lists & type arguments are experimental and may change without prior notice." | ||
class MyClass2<T>(p: MyClass2<MyClass1»<>«>) |
13 changes: 13 additions & 0 deletions
13
...ests/resources/validation/experimental language feature/type parameter lists/main.sdstest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
package tests.validation.experimentalLanguageFeature.typeParameterLists | ||
|
||
// $TEST$ warning "Type parameter lists & type parameters are experimental and may change without prior notice." | ||
class MyClass»<>« | ||
|
||
// $TEST$ warning "Type parameter lists & type parameters are experimental and may change without prior notice." | ||
enum MyEnum { | ||
MyEnumVariant»<>« | ||
} | ||
|
||
// $TEST$ warning "Type parameter lists & type parameters are experimental and may change without prior notice." | ||
fun myFunction»<>«() |