Skip to content

[filetypes] Update Kotlin basic types #3456

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

Merged
merged 2 commits into from
Apr 16, 2023
Merged

[filetypes] Update Kotlin basic types #3456

merged 2 commits into from
Apr 16, 2023

Conversation

ntrel
Copy link
Member

@ntrel ntrel commented Apr 11, 2023

Also remove NaN as it is just a property of floating-point types, it's not a reserved word:
https://github.com/JetBrains/kotlin/blob/30788566012c571aa1d3590912468d1ebe59983d/core/builtins/native/kotlin/Primitives.kt#L1763

@@ -4,7 +4,7 @@
# https://kotlinlang.org/docs/reference/keyword-reference.html
primary=abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while true false null as fun in object typealias val var when by constructor delegate dynamic field file get init param property receiver set setparam where actual annotation companion const crossinline data expect external infix inline inner internal lateinit noinline open operator out reified sealed suspend tailrec vararg field it
# https://kotlinlang.org/docs/reference/basic-types.html
secondary=Double Float Long Int Short Byte NaN Void
secondary=Boolean Byte Char Double Float Long Int Short String UByte UInt ULong UShort Void
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd maybe ditch Void too, it's only used in Java IIRC.

What about Nothing and Unit? Those are kind of basic types too, aren't they? But the link above doesn't mention them, so it is kind of gray area.

Otherwise it looks fine to me (as a Kotlin user).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, now done. Also added Any.

@eht16
Copy link
Member

eht16 commented Apr 16, 2023

@dolik-rce fine by you? If so, let's merge.

@dolik-rce
Copy link
Contributor

Yes, you can merge it. Thanks.

@eht16 eht16 merged commit 7af6eaf into geany:master Apr 16, 2023
@b4n b4n added this to the 1.39/2.0 milestone Apr 17, 2023
@ntrel ntrel deleted the ft-kotlin branch April 17, 2023 14:15
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.

4 participants