diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-11 01:35:21 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-11 01:35:21 +0000 |
commit | 7f4fa0ec6f303c4ec535865a6cc5f117df221980 (patch) | |
tree | 864050d01c7629801a3e71d9128c70b20a6eb40f /test/files/pos | |
parent | d01ab1ba466c1c4778505ff4aa1747dde7309052 (diff) | |
download | scala-7f4fa0ec6f303c4ec535865a6cc5f117df221980.tar.gz scala-7f4fa0ec6f303c4ec535865a6cc5f117df221980.tar.bz2 scala-7f4fa0ec6f303c4ec535865a6cc5f117df221980.zip |
A comment answering one of adriaan's philosophi...
A comment answering one of adriaan's philosophical musings on why
programs fail, and a test case informed by the comment. Review by moors.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/isApplicableSafe.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/isApplicableSafe.scala b/test/files/pos/isApplicableSafe.scala new file mode 100644 index 0000000000..591beb2b36 --- /dev/null +++ b/test/files/pos/isApplicableSafe.scala @@ -0,0 +1,8 @@ +class A { + // Any of Array[List[Symbol]], List[Array[Symbol]], or List[List[Symbol]] compile. + var xs: Array[Array[Symbol]] = _ + var ys: Array[Map[Symbol, Set[Symbol]]] = _ + + xs = Array(Array()) + ys = Array(Map(), Map()) +}
\ No newline at end of file |