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

4.3.4 #11583

Merged
merged 35 commits into from
Mar 4, 2024
Merged

4.3.4 #11583

merged 35 commits into from
Mar 4, 2024

Conversation

kLabz
Copy link
Contributor

@kLabz kLabz commented Feb 18, 2024

* [typer] don't infer String when concatenating

see #11284

* dodge neko things very elegantly
@kLabz
Copy link
Contributor Author

kLabz commented Feb 18, 2024

Regarding the bind change:

function f(notOpt:Int, ?opt:String) {}
function g(notOpt:Int, alsoNotOpt:Bool, ?opt:String) {}

function main() {
	var fBind = f.bind(1);
	var gBind = g.bind(1);
	$type(fBind);
	$type(gBind);

	var fBind = f.bind(1, _);
	$type(fBind);

	var f1 = f.bind(1, null);
	$type(f1);

	var g1 = g.bind(1, _, null);
	$type(g1);
}

Gives:

# 5.0.0 nightlies
src/Main.hx:7: characters 8-13 : Warning : (?opt : Null<String>) -> Void
src/Main.hx:8: characters 8-13 : Warning : (alsoNotOpt : Bool, ?opt : Null<String>) -> Void
src/Main.hx:11: characters 8-13 : Warning : (?opt : Null<String>) -> Void
src/Main.hx:14: characters 8-10 : Warning : () -> Void
src/Main.hx:17: characters 8-10 : Warning : (alsoNotOpt : Bool) -> Void

# 4.3.3
src/Main.hx:7: characters 8-13 : Warning : () -> Void
src/Main.hx:8: characters 8-13 : Warning : (alsoNotOpt : Bool) -> Void
src/Main.hx:11: characters 8-13 : Warning : (?opt : Null<String>) -> Void
src/Main.hx:14: characters 8-10 : Warning : () -> Void
src/Main.hx:17: characters 8-10 : Warning : (alsoNotOpt : Bool) -> Void

# 4.3.4 nightlies
src/Main.hx:7: characters 8-13 : Warning : () -> Void
src/Main.hx:8: characters 8-13 : Warning : (alsoNotOpt : Bool) -> Void
src/Main.hx:11: characters 8-13 : Warning : (?opt : Null<String>) -> Void
src/Main.hx:14: characters 8-10 : Warning : () -> Void
src/Main.hx:17: characters 8-10 : Warning : (alsoNotOpt : Bool) -> Void

# 4.3.4 nightlies with -D haxe-next
src/Main.hx:7: characters 8-13 : Warning : (?opt : Null<String>) -> Void
src/Main.hx:8: characters 8-13 : Warning : (alsoNotOpt : Bool, ?opt : Null<String>) -> Void
src/Main.hx:11: characters 8-13 : Warning : (?opt : Null<String>) -> Void
src/Main.hx:14: characters 8-10 : Warning : () -> Void
src/Main.hx:17: characters 8-10 : Warning : (alsoNotOpt : Bool) -> Void

@kLabz
Copy link
Contributor Author

kLabz commented Feb 18, 2024

(disregard the branch name, this branch is pretty much about all changes between 4.3.3 and 4.3.4 now)

I've added some changes that I thought we might want to add in addition to the ones tracked in #11394:

I can obviously remove some/all from here if that's an issue.

There are also a few more changes that I didn't add (yet), for which there are conflicts / I have some doubts / there is still some work to do:

As for -D haxe-next, I'm not sure what can be done about Rework module resolution #11168 ; any idea?

@RblSb
Copy link
Member

RblSb commented Feb 18, 2024

Would like to have 03aa20e, change seems pretty small?

@kLabz
Copy link
Contributor Author

kLabz commented Feb 18, 2024

Already cited above

@skial skial mentioned this pull request Feb 19, 2024
1 task
@kLabz kLabz linked an issue Mar 4, 2024 that may be closed by this pull request
9 tasks
@kLabz kLabz marked this pull request as ready for review March 4, 2024 10:11
@kLabz kLabz merged commit dc1a43d into 4.3_bugfix Mar 4, 2024
12 checks passed
@kLabz kLabz changed the title [4.3.4] WIP 4.3.4 Mar 4, 2024
@kLabz kLabz deleted the 4.3_warnings branch May 28, 2024 09:33
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.

Pull requests for 4.3 Hotfix (part 4)
4 participants