Skip to content

Add some type annotations - #180

Closed
Simn wants to merge 1 commit into
masterfrom
haxe6-annotations
Closed

Simn wants to merge 1 commit into
masterfrom
haxe6-annotations

Conversation

@Simn

@Simn Simn commented Oct 26, 2026

Copy link
Copy Markdown
Member

(Nicolas is working on a Haxe branch which has stricter requirements with regards to type-hints, and this branch was created as a side product. I'm opening this for visibility so that I don't forget about looking into it.)


@:inheritDoc
public function now() {
public function now():haxe.Int64 {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks like it shouldn't be necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ncannasse I'm also curious why this one was needed? It seems it was not addressed before merging into master: 9aab571

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely not necessary.

A field's type is fixed by the end of its own typing: annotate the fields
whose type can no longer be inferred, and adapt the macros to these rules.
@ncannasse ncannasse closed this Nov 25, 2026
@ncannasse
ncannasse deleted the haxe6-annotations branch November 25, 2026 16:12
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.

3 participants