Commit Graph

7 Commits

Author SHA1 Message Date
Anthony Latsis
d98a76172d Gardening: Migrate test suite to GH issues: Sema (1/2) 2022-09-02 11:00:19 +03:00
David Ungar
f64033a2d2 Manual rebase with master 2019-08-06 22:13:20 -07:00
David Ungar
663760e3b7 ASTOOScope ontology 2019-05-28 10:48:22 -07:00
Rintaro Ishizaki
c329d72cd7 [Sema] Fix a crash in use-before-declaration case (#18466)
Check use-before-declaration early so we don't typecheck referenced decl
which might depends on the reference.

https://bugs.swift.org/browse/SR-7517
https://bugs.swift.org/browse/SR-8447
rdar://problem/39782719
2018-08-03 13:01:18 +09:00
Mark Lacey
78d83e5703 Use %target-typecheck-verify-swift where possible. 2018-07-26 23:13:43 -07:00
Ding Ye
95b95e3d99 [Sema] Fix spurious use_local_before_declaration errors.
When performing name lookup for UnresolvedDeclRefExpr, if a
local declaration after use is detected, we check outer results
to see if we can find better matching candidates before raising
a use_local_before_declaration error.

Resolves: SR-7660.
2018-06-03 19:59:45 +10:00
gregomni
e40038bdbd It was possible to construct a series of declarations such that a variable was
used before declared but the declaration was also marked invalid. This would
end up diagnosing nothing and thus result in an obscure assert crash in SILGen
instead. Solution is just to diagnose the use-before-declaration always.
2018-01-14 23:47:40 -08:00