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

fix haxe version check #273

Merged
merged 1 commit into from Sep 9, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -142,7 +142,7 @@ will be empty if `Option` is `None` or will contain one value otherwise.
`toBool` transforms an `Option` value into a boolean: `None` maps to `false`, and
`Some(_)` to `true`. The value in `Some` has no play in the conversion.
**/
#if ((haxe <= 3.2) && java) @:generic #end
#if ((haxe_ver <= 3.2) && java) @:generic #end
public static function toBool<T>(option : Option<T>) : Bool
return switch option {
case None: false;
@@ -152,7 +152,7 @@ will be empty if `Option` is `None` or will contain one value otherwise.
/**
`isNone` determines whether the option is a None
**/
#if ((haxe <= 3.2) && java) @:generic #end
#if ((haxe_ver <= 3.2) && java) @:generic #end
public static function isNone<T>(option: Option<T>): Bool
return !toBool(option);

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.