[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git] / mcs / tests / test-599.cs
1 using System;
2
3 namespace Test
4 {
5         using Text = System.Text;
6         using Str = System.String;
7         
8         public class String
9         {
10                 string s;
11                 public String(string s)
12                 {
13                         this.s=s;
14                 }
15
16                 public static implicit operator String (string s1) 
17                 {
18                         if(s1==null) return null;
19                         return new String(s1);
20                 }
21
22                 public static implicit operator Str (String s1) 
23                 {
24                         if(s1==null) return null;
25                         return s1.ToString();
26                 }
27         }
28 }
29
30 namespace TestCompiler
31 {
32         using String=Test.String;
33         
34         class MainClass
35         {
36                 public static int Main ()
37                 {
38                         String a = "a";
39                         int i=1;
40                         a+=i;
41                         string s = i + a;
42                         
43                         Console.WriteLine (s);
44                         if (s != "1Test.String")
45                                 return 1;
46                                 
47                         return 0;
48                 }
49         }
50 }