Skip to content

Commit

Permalink
Merge pull request #25 from WojciechMazur/fix/scala-3.5.0
Browse files Browse the repository at this point in the history
Fix compilation of match types under the Scala 3.5.x
  • Loading branch information
dragonfly-ai authored Dec 9, 2024
2 parents cf40210 + 8435d7c commit c31eb90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narr/shared/src/main/scala/narr/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ package object narr {

type TypedArrayPrimitive = Byte | Short | Int | Float | Double

type ArrayElementType[T <: NativeTypedArray | NativeArray[T]] = T match
type ArrayElementType[T <: NativeTypedArray | NativeArray[?]] = T match
case ByteArray => Byte
case ShortArray => Short
case IntArray => Int
case FloatArray => Float
case DoubleArray => Double
case NativeArray[T] => T
case NativeArray[t] => t

type NArray[T] = narr.native.NArray[T]

Expand Down

0 comments on commit c31eb90

Please sign in to comment.