Files
swift-mirror/test/Sema/circularity_multifile_error.swift
John McCall 91ffc9baaa Weaken the circularity re-delay assertion when errors have been emitted.
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.
2017-04-19 01:08:41 -04:00

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
}