Skip to content

Commit

Permalink
remove inline param to match withNames
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed May 30, 2024
1 parent f52540f commit f020133
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/scala/NamedTuple.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object NamedTuple:

@annotation.compileTimeOnly("NamedTupleBuilder.Builder should have been eliminated by calling the build method.")
final class NamedTupleBuilder[N <: Tuple]():
inline def build[V <: Tuple](inline x: V): NamedTuple[N, V] = x
inline def build[V <: Tuple](x: V): NamedTuple[N, V] = x

extension [V <: Tuple](x: V)
@deprecated("Use NamedTupleBuilder.apply instead")
Expand Down Expand Up @@ -219,4 +219,3 @@ object NamedTupleDecomposition:
/** The value types of a named tuple represented as a regular tuple. */
type DropNames[NT <: AnyNamedTuple] <: Tuple = NT match
case NamedTuple[_, x] => x

0 comments on commit f020133

Please sign in to comment.