AST: Optimize TypeAliasType representation

This commit is contained in:
Slava Pestov
2024-11-26 13:31:08 -05:00
parent e1abaa540f
commit 302b163edc
13 changed files with 180 additions and 111 deletions

View File

@@ -0,0 +1,11 @@
// RUN: %target-swift-frontend -emit-ir -g %s
public func f<T>(t: T) {
typealias G1<U> = (U)
typealias G2<U> = (T)
typealias G3<U> = (T, U)
var x: G1<Int> = 123
var y: G2<Int> = t
var z: G3<Int> = (t, 123)
}