Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
SOF question https://stackoverflow.com/q/50428367/1198559 - Version 2Error(s), warning(s): source_file.scala:37: error: type mismatch; found : Int(42) required: B Note: implicit object View2Conv is not applicable here because it comes after the application point and it lacks an explicit result type def f[A, B] (a:A)(implicit aux:Dep.Aux[View1,A,B]):B = 42 ^ source_file.scala:41: error: type mismatch; found : String("42") required: B def f[A, B] (a:A)(implicit aux:Dep.Aux[View2,A,B]):B = "42" ^ source_file.scala:49: error: type mismatch; found : Int(43) required: B Note: implicit object View2Conv is not applicable here because it comes after the application point and it lacks an explicit result type def f[A, B] (a:A)(implicit aux:Dep.Aux[View1,A,B]):B = 43 ^ source_file.scala:53: error: type mismatch; found : String("43") required: B def f[A, B] (a:A)(implicit aux:Dep.Aux[View2,A,B]):B = "43" ^ four errors found |
λ
.NET NoSQL database for rapid development
|