Created
January 21, 2020 01:20
-
-
Save mpollmeier/7d55104537ab228b759e1d50353ce557 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
implicit class FooExt(val foo: Foo) extends AnyVal { | |
def bar = 42 | |
} | |
// usage | |
val foo = new Foo | |
foo.bar // will not allocate FooExt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment