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:
authorMiguel de Icaza <miguel@gnome.org>2018-03-17 01:10:23 +0300
committerMarek Safar <marek.safar@gmail.com>2018-03-17 01:10:23 +0300
commitfe3c5134bf51f623be7b39073d25d38a58887735 (patch)
tree7343a0c53ae3c09c9af50285e95f14ae1d2fee4d /mcs/errors
parent421e01747933acf2976624e37a59a4a0b2bb80af (diff)
Implement C#7 binary literals (#7659)
* C# 7.0 binary literal support * [mcs] Add another negative error test
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/cs1013-1.cs8
-rw-r--r--mcs/errors/cs1021-4.cs8
2 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs1013-1.cs b/mcs/errors/cs1013-1.cs
new file mode 100644
index 00000000000..01827df4995
--- /dev/null
+++ b/mcs/errors/cs1013-1.cs
@@ -0,0 +1,8 @@
+// CS1013: Invalid number
+// Line : 6
+
+class X
+{
+ static int i = 0b;
+ static void Main () {}
+} \ No newline at end of file
diff --git a/mcs/errors/cs1021-4.cs b/mcs/errors/cs1021-4.cs
new file mode 100644
index 00000000000..75c2ff70360
--- /dev/null
+++ b/mcs/errors/cs1021-4.cs
@@ -0,0 +1,8 @@
+// CS1021: Integral constant is too large
+// Line: 6
+
+class X {
+ public static void Main() {
+ int h = 0b11111111111111111111111111111111111111111111111111111111111111111;
+ }
+}