Files
swift-mirror/test/Parse/delayed_extension.swift
Xi Ge c4db69451c Parser: Ignore and recover marked parse position during on-demand member parsing.
New construction of a parser instance will reset the marked parser
position in PersistentParserState. We should recover the marked parser
position during on-demand parsing in case the marked position will be
later used to create another parser instance to continue parsing
linearly.
2018-09-09 01:28:20 -07:00

6 lines
187 B
Swift

// RUN: %target-typecheck-verify-swift -swift-version 4
extension X { } // expected-error {{use of undeclared type 'X'}}
_ = 1
f() // expected-error {{use of unresolved identifier 'f'}}