lampepfl / gears

A strawman for a low-level async library in Scala 3.
https://lampepfl.github.io/gears/
Apache License 2.0
247 stars 24 forks source link

Avoid `native` name clash #43

Closed natsukagami closed 6 months ago

natsukagami commented 6 months ago

In this file we declare the package gears.async.native while also importing scala.scalanative.runtime.Continuations as native.

In Scala up until 3.3.1, native.suspend and such looks up on the renamed import and the code compiles. Scala 3.4.0 looks for the name in the local package, and hence does not compile.