Commit 043d76a
committed
Sema: Don't type check enum element default args in non-primary files
Move the checking from validateDecl() to typeCheckDecl() since there's no
need to do it unless we're going to be emitting the enum declaration.1 parent 8292cbe commit 043d76a
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2941 | 2941 | | |
2942 | 2942 | | |
2943 | 2943 | | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
2944 | 2947 | | |
2945 | 2948 | | |
2946 | 2949 | | |
| |||
4098 | 4101 | | |
4099 | 4102 | | |
4100 | 4103 | | |
4101 | | - | |
4102 | 4104 | | |
4103 | 4105 | | |
4104 | 4106 | | |
| |||
0 commit comments