Skip to content

Commit

Permalink
[compiler] Fix issue where second argument of all functions was consi…
Browse files Browse the repository at this point in the history
…dered to be a ref

ghstack-source-id: 1817f3b816ab5ec013a3b1a6c8a8373a30e0b3a0
Pull Request resolved: #30912
  • Loading branch information
mvitousek committed Sep 16, 2024
1 parent 26855e4 commit c8a7cab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function equation(left: Type, right: Type): TypeEquation {
function* generate(
func: HIRFunction,
): Generator<TypeEquation, void, undefined> {
if (func.env.fnType === 'Component') {
if (func.fnType === 'Component') {
const [props, ref] = func.params;
if (props && props.kind === 'Identifier') {
yield equation(props.identifier.type, {
Expand Down

0 comments on commit c8a7cab

Please sign in to comment.