Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible null coalescing operator proirity error #11144

Closed
filt3rek opened this issue Apr 14, 2023 · 0 comments
Closed

Possible null coalescing operator proirity error #11144

filt3rek opened this issue Apr 14, 2023 · 0 comments
Assignees

Comments

@filt3rek
Copy link
Contributor

Hej,

Idk if it's "normal" but it seems that ?? op has lower priority than || : https://try.haxe.org/#c130f232

class Test {
  static function main() {
    trace( false ?? false || true );		// false
    trace( ( false ?? false ) || true );	// true
  }
}
@Simn Simn closed this as completed in a81ea23 Apr 14, 2023
@Simn Simn added this to the 4.3 Hotfix milestone Apr 14, 2023
@Simn Simn reopened this Apr 14, 2023
kLabz pushed a commit that referenced this issue Apr 14, 2023
@kLabz kLabz closed this as completed Apr 14, 2023
@kLabz kLabz removed this from the 4.3 Hotfix milestone Sep 8, 2023
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

No branches or pull requests

3 participants