Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2017-12-31 16:02:58 +0300
committerMarek Safar <marek.safar@gmail.com>2018-01-02 17:30:28 +0300
commit1003597c4e2664689e2cfa6ef5f17d4e3274b7cf (patch)
treecf5997c7ff221654f91239c244dac1a8361de116 /mcs/errors
parenteb3f9147ae855e1bbc7e5fa63ac2a37b41abe5e0 (diff)
[mcs] Implements 7.2 stackalloc to Span assignment conversion.
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs8346.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs8346.cs b/mcs/errors/cs8346.cs
new file mode 100644
index 00000000000..58e22a2ae7f
--- /dev/null
+++ b/mcs/errors/cs8346.cs
@@ -0,0 +1,13 @@
+// CS8346: Cannot convert a stackalloc expression of type `byte' to type `System.Span<int>'
+// Line: 11
+// Compiler options: -langversion:7.2
+
+using System;
+
+class X
+{
+ public static void Main ()
+ {
+ Span<int> stackSpan = stackalloc byte[1];
+ }
+} \ No newline at end of file