mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We don't finalize declarations when there's been an error, which means we might never assign types to the stored properties/cases of a nominal type from another file, which means that circularity checking for types using those types be re-delayed. Fixes SR-4594.
12 lines
267 B
Swift
12 lines
267 B
Swift
// RUN: %target-swift-frontend -emit-silgen -verify -primary-file %s %S/Inputs/circularity_multifile_error_helper.swift
|
|
|
|
// SR-4594
|
|
|
|
struct A {
|
|
var b: AnUndefinedType // expected-error {{use of undeclared type 'AnUndefinedType'}}
|
|
}
|
|
|
|
struct B {
|
|
var a : External
|
|
}
|