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

Skip default type parameters with _ #11164

Open
kLabz opened this issue Apr 19, 2023 · 3 comments · May be fixed by #12002
Open

Skip default type parameters with _ #11164

kLabz opened this issue Apr 19, 2023 · 3 comments · May be fixed by #12002
Milestone

Comments

@kLabz
Copy link
Contributor

kLabz commented Apr 19, 2023

(needed an issue number for tests)

Allow this:

function main() {
    var a:A<_,Int>;
    $type(a); // A<String,Int>
}

typedef A<K = String, V> = haxe.ds.BalancedTree<K,V>;
@Simn
Copy link
Member

Simn commented Feb 6, 2024

Uhm, did we agree to do this? I can't remember...

@kLabz
Copy link
Contributor Author

kLabz commented Feb 6, 2024

Well, I did agree with myself there 😁

iirc you were mostly worried about that syntax being potentially useful for something else, but I don't remember what

@back2dos
Copy link
Member

back2dos commented Feb 6, 2024

Random idea: A<default, Int>.

@kLabz kLabz linked a pull request Feb 12, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants