Skip to content

fix(NAssetNode): generate a unique temp var for n:asset macros - #9

Open
vojtechrichter wants to merge 1 commit into
nette:masterfrom
vojtechrichter:fix/n-asset-n-class-tmp-var-collision
Open

fix(NAssetNode): generate a unique temp var for n:asset macros#9
vojtechrichter wants to merge 1 commit into
nette:masterfrom
vojtechrichter:fix/n-asset-n-class-tmp-var-collision

Conversation

@vojtechrichter

Copy link
Copy Markdown
  • bug fix / new feature? bug fix
  • BC break? no

Combining n:asset with n:class on the same element produces an error, since the results are both stores in $ʟ_tmp and collide. This yields a type error since the asset node receives an array (from n:class) instead of an instance of the Asset interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant