diff options
author | Jon Pretty <jon.pretty@propensive.com> | 2017-11-29 15:15:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 15:15:51 +0100 |
commit | 2332d33b0da2861e958a313bbd1707ab0ce289db (patch) | |
tree | 95498c404dce5ad93f879bbd9742b2c24a1bac84 /core | |
parent | 192173d811f870e6e9c705c80118e27dc63a898b (diff) | |
parent | c560260df88d597fb8858603deb233c8212163b9 (diff) | |
download | magnolia-2332d33b0da2861e958a313bbd1707ab0ce289db.tar.gz magnolia-2332d33b0da2861e958a313bbd1707ab0ce289db.tar.bz2 magnolia-2332d33b0da2861e958a313bbd1707ab0ce289db.zip |
Merge pull request #49 from missingfaktor/master
Avoid instantiating Unit when producing error stack
Diffstat (limited to 'core')
-rw-r--r-- | core/shared/src/main/scala/magnolia.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/shared/src/main/scala/magnolia.scala b/core/shared/src/main/scala/magnolia.scala index 6400002..d400bc3 100644 --- a/core/shared/src/main/scala/magnolia.scala +++ b/core/shared/src/main/scala/magnolia.scala @@ -215,7 +215,8 @@ object Magnolia { typeOf[Int], typeOf[Long], typeOf[Char], - typeOf[Boolean]) + typeOf[Boolean], + typeOf[Unit]) val isValueClass = genericType <:< typeOf[AnyVal] && !primitives.exists(_ =:= genericType) |