Files
swift-mirror/test/Syntax/syntax_diagnostics.swift
Alex Hoppen 00604fb3dc [libSyntax] Add -verify-syntax-tree frontend flag
This will parse the source file into a libSyntax tree and verify that no
unknown nodes exist within it
2018-04-27 07:51:08 -07:00

4 lines
217 B
Swift

// RUN: %target-swift-frontend -emit-syntax -primary-file %s -verify
typealias Inner: Foo // expected-error{{unknown declaration syntax exists in the source}} expected-error{{expected '=' in type alias declaration}}