score:1
the issue is that scala can't infer t
here because it only has z
in the arguments (i don't see a reason it couldn't, in this case). the obvious way to fix it is dosomethingontopofaneventtrace[concreteevent, concreteeventtrace[concreteevent]](concreteeventtrace)
. another, if you don't actually need to be generic in z
:
def dosomethingontopofaneventtrace[t <: event](eventtrace: eventtrace[t])
you could also try to use type members instead of generics in event
and eventtrace
.
Source: stackoverflow.com
Related Query
- Scala multiple type conformance
- Scala multiple type pattern matching
- Scala type keyword: how best to use it across multiple classes
- Multiple lower type bounds in Scala
- How do I setup multiple ORed type bounds in Scala
- How to test type conformance of higher-kinded types in Scala
- Multiple type parameters on a scala method
- Generalized structural type conformance in Scala
- Scala generic (tuple) type with multiple subtypes
- Understanding multiple parameter types in Scala Type Parameterization
- Scala type inference and multiple arguments list
- Scala define type from multiple generic traits
- How to get match type with multiple type parameters to work correctly in Scala 3
- Scala type parameter with multiple types as result of function
- Why scala cannot infer common return type for a function with multiple parameter lists?
- Scala this.type conformance to type parameter bounds of supertype
- Scala Reflection: How to find a no-arg constructor via reflection (if there are multiple constructors) ? What is the type signature of "no-arg"?
- An actor for websocket on play framework with multiple message type - scala
- Scala pattern match the same type parameter multiple times
- Question about Scala implicits with multiple type parameters
- Scala Multiple type parameter that are defined later
- Multiple markers at a line, type mismatch in scala
- How can I make a scala method parameter type that is a collection of multiple types that can be converted to a given type?
- Split Map type column with huge values into multiple rows using Scala and Spark
- Scala implicit and type classes across multiple projects
- scala type alias - how to have a type that represent multiple data types
- Apply multiple annotation to a class and/or field using a single type alias in Scala
- flattern scala array data type column to multiple columns
- Scala - Mapping one key to multiple values of different type
- Scala type mismatch using multiple generic
More Query from same tag
- In which controller will action builder executes
- Twitter Popular Tags Using Scala Apache Spark
- AKKA Futures and Java Threads
- custom signup "signupXhtml"
- Determine base classes not in standard lib (Java or Scala) with runtime reflection
- Does using a library like cats make upgrading to dotty more or less difficult?
- How to Generate multiple rows from single row data with split/explode function - scala sql/Apache Pyspark SQL
- Return instance of inner class in nested classes
- sbt-idea - SBT 0.12.4+ required
- Type bounds on methods not enforced
- Scalaz: how to combine monads of type OptionT[State[_], T], so it won't terminate on None
- Ignoring schema mismatches between source and destination tables in cassandra using spark sql
- Scala split on \n
- Why won't sbt run ScalaTest's example test?
- How should I implement "add" interpreter in scala?
- best techniques to debug scala code which passes around lambda bodies, anonymous class instances and things like that?
- Applicative functors vs monad composing performance in Scala
- Scalatra Session without cookies
- what is the equivalent of fs2.Scheduler in fs2 (0.10.x) in newer versions
- Compile Error when killing topology from storm bolt programatically: object and package with same name
- scala sbt version of plugin
- When can I unpersist my RDD?
- Automatically update sbt dependencies to latest version
- how to create remote actors dynamically and control them by using AKKA
- sbt cannot resolve ensime-sbt-cmd in a Play2-Scala project
- How to match every A's and B's but not a certain substring
- Scala get a substring
- How to ensure type safety with Scala's Refined library when using the same predicate for refinement
- Fetch data using regular expression in playframework
- IntelliJ IDEA: Detects comparisons (== and !=) of expressions which cannot be the same type