mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Some messages said 'typealias' and others said 'type alias'. Change everything to use 'type alias' consistently (except when it's talking about the keyword itself).
17 lines
596 B
Swift
17 lines
596 B
Swift
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck -strict-whitespace %s
|
|
|
|
// Test the diagnostic option 'PointsToFirstBadToken'.
|
|
|
|
typealias TestDiagPointsToEndOfLine =
|
|
|
|
// CHECK: error: expected type in type alias declaration
|
|
// CHECK-NEXT: {{^}}typealias TestDiagPointsToEndOfLine ={{$}}
|
|
// CHECK-NEXT: {{^}} ^{{$}}
|
|
|
|
typealias TestDiagPointsToBadToken = =
|
|
|
|
// CHECK: error: expected type in type alias declaration
|
|
// CHECK-NEXT: {{^}}typealias TestDiagPointsToBadToken = ={{$}}
|
|
// CHECK-NEXT: {{^}} ^{{$}}
|
|
|