blob: 0422c45eeb16c7e46b5fc6f46d8111950b757c66 [file] [log] [blame]
// RUN: %target-parse-verify-swift
//===--- Simple positive tests.
typealias IntPair = (Int, Int)
typealias IntTriple = (Int, Int, Int)
typealias FiveInts = (IntPair, IntTriple)
var fiveInts : FiveInts = ((4,2), (1,2,3))
//===--- Tests for error recovery.
typealias Recovery1 // expected-error {{expected '=' in typealias declaration}}
typealias Recovery2 : // expected-error {{expected '=' in typealias declaration}}
typealias Recovery3 = // expected-error {{expected type in typealias declaration}}
typealias Recovery4 : Int // expected-error {{expected '=' in typealias declaration}}
typealias Recovery5 : Int, Float // expected-error {{expected '=' in typealias declaration}}
typealias Recovery6 = = // expected-error {{expected type in typealias declaration}}