diff options
author | Paul Phillips <paulp@improving.org> | 2011-09-28 20:49:29 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-09-28 20:49:29 +0000 |
commit | 82eb1aa430195648b6fe80f67c45c741884dc2d7 (patch) | |
tree | 1a6b52bdd181d571e5f773942b3c1aa04a04d99a /test/files/run/t1333.scala | |
parent | 26ddf17b21f289bba1ac76db7d5df54af306e75b (diff) | |
download | scala-82eb1aa430195648b6fe80f67c45c741884dc2d7.tar.gz scala-82eb1aa430195648b6fe80f67c45c741884dc2d7.tar.bz2 scala-82eb1aa430195648b6fe80f67c45c741884dc2d7.zip |
Hand specialized SettingValue.
Discovered every time we do something like
if (settings.debug.value)
the boolean is coming out of a box. How uncouth. To fix this, I had to
make the storage abstract, so concrete setting types have to declare
the storage personally. This seems a small price to pay. I tried to use
specialization but I think it's impossible to get the type parameter and
the abstract type to agree with one another when mr. invariant var is
the object of your affection, without scalac putting the kibosh on the
whole adventure. No review.
Diffstat (limited to 'test/files/run/t1333.scala')
0 files changed, 0 insertions, 0 deletions