Skip to content

Commit 4264537

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Typecheck providers
Summary: ``` MyInfo = provider(fields = ["x"]) def test(): MyInfo(x = 1).y ``` is compile time error now. Reviewed By: ianlevesque Differential Revision: D48933487 fbshipit-source-id: bac5f2c8f18aba1354994cf3a0e061936fc4dd7e
1 parent 5598e6c commit 4264537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starlark/src/typing/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl Ty {
429429
}
430430

431431
/// Iterate over the types within a union, pretending the type is a singleton union if not a union.
432-
pub(crate) fn iter_union(&self) -> &[TyBasic] {
432+
pub fn iter_union(&self) -> &[TyBasic] {
433433
&self.alternatives
434434
}
435435

0 commit comments

Comments
 (0)