mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Optimize TypeAliasType representation
This commit is contained in:
11
test/DebugInfo/local_generic_type_alias.swift
Normal file
11
test/DebugInfo/local_generic_type_alias.swift
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user