Skip to content

Add option to remove @ExperimentalUnsignedTypes in kotlin code as these are no longer unstable #7087

Closed
@aaronriekenberg

Description

@aaronriekenberg

writer += "@ExperimentalUnsignedTypes";

writer += "@ExperimentalUnsignedTypes";

In Kotlin 1.5 unsigned integer types are considered stable https://kotlinlang.org/docs/whatsnew15.html#stable-unsigned-integer-types

Now all kotlin code generated by flatc has @ExperimentalUnsignedTypes which generates warnings at compile-time in the kotlin compiler. I think this happens even if unsigned types are not being used in the flatbuffer schema.

Would you consider the addition of an option to flatc to not generate the @ExperimentalUnsignedTypes so that users of Kotlin 1.5 and newer can use the now-stable unsigned types?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions