Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Nested inlines support? #99

@davesmith00000

Description

@davesmith00000

If you nest inlines, you get this error:

Implementation restriction: nested inline methods are not supported

Which I suspect is Ultraviolet, not Scala.

The use case for allowing this is that you can only declare array lengths with literals, but it would be nice to be able to declare the length in one place.

inline def count = 5
val islands: array[count, vec3] = ... // doesn't work
...
while i < count do
  ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions