Skip to content

Commit 53ac7e1

Browse files
SamChou19815meta-codesync[bot]
authored andcommitted
Fix new flow casting syntax codegen bug
Reviewed By: gkz Differential Revision: D94969166 fbshipit-source-id: 274d7a9aed9ca84ee1491f46706facac7f47732f
1 parent 8006314 commit 53ac7e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compiler/crates/relay-typegen/src

compiler/crates/relay-typegen/src/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ fn write_abstract_validator_function(
10051005
match language {
10061006
TypegenLanguage::Flow | TypegenLanguage::JavaScript => {
10071007
let cast_op = if use_new_flow_casting_syntax {
1008-
" as "
1008+
":: as "
10091009
} else {
10101010
": "
10111011
};

0 commit comments

Comments
 (0)