mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
check if the member is a type reference and build a TypeExpr _before_ checking if the base is a module and building a simple DeclRefExpr.
10 lines
319 B
Swift
10 lines
319 B
Swift
// RUN: %target-swift-frontend -module-name SomeModule -typecheck -verify -dump-ast -import-objc-header %S/Inputs/imported_type.h %s | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
// CHECK: declref_expr type='module<SomeModule>'
|
|
// CHECK-NEXT: type_expr type='Data.Type'
|
|
let type = SomeModule.Data.self
|