Introduce typed semantic analysis pipeline
This commit is contained in:
parent
117d188194
commit
f4cd4f4458
30 changed files with 2079 additions and 2381 deletions
|
|
@ -44,8 +44,8 @@ fun main() { println(load()) }`)
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorkerAndBareGoAreRemoved(t *testing.T) {
|
||||
for _, source := range []string{`package demo worker Counter { var count = 0 }`, `package demo fun main() { go println("x") }`} {
|
||||
func TestLegacyConcurrencySyntaxIsRemoved(t *testing.T) {
|
||||
for _, source := range []string{`package demo worker Counter { var count = 0 }`, `package demo fun main() { go println("x") }`, `package demo fun main() { select { channel -> println(it) } }`} {
|
||||
if _, err := Parse(source); err == nil {
|
||||
t.Fatalf("deprecated concurrency syntax parsed: %s", source)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue