Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
go /
types /
testdata /
[ HOME SHELL ]
Name
Size
Permission
Action
blank.src
203
B
-rw-r--r--
builtins.src
23.77
KB
-rw-r--r--
const0.src
8.32
KB
-rw-r--r--
const1.src
8.04
KB
-rw-r--r--
constdecl.src
3.02
KB
-rw-r--r--
conversions.src
1.71
KB
-rw-r--r--
conversions2.src
5.07
KB
-rw-r--r--
cycles.src
2.79
KB
-rw-r--r--
cycles1.src
781
B
-rw-r--r--
cycles2.src
1.21
KB
-rw-r--r--
cycles3.src
675
B
-rw-r--r--
cycles4.src
1.76
KB
-rw-r--r--
cycles5.src
2.91
KB
-rw-r--r--
decls0.src
3.91
KB
-rw-r--r--
decls1.src
3.57
KB
-rw-r--r--
decls2a.src
3.11
KB
-rw-r--r--
decls2b.src
1.87
KB
-rw-r--r--
decls3.src
4.17
KB
-rw-r--r--
decls4.src
2.99
KB
-rw-r--r--
decls5.src
363
B
-rw-r--r--
errors.src
1.9
KB
-rw-r--r--
expr0.src
3.39
KB
-rw-r--r--
expr1.src
2.57
KB
-rw-r--r--
expr2.src
4.63
KB
-rw-r--r--
expr3.src
14.87
KB
-rw-r--r--
gotos.src
5.77
KB
-rw-r--r--
importC.src
1.21
KB
-rw-r--r--
importdecl0a.src
1.24
KB
-rw-r--r--
importdecl0b.src
1000
B
-rw-r--r--
importdecl1a.src
521
B
-rw-r--r--
importdecl1b.src
260
B
-rw-r--r--
init0.src
1.91
KB
-rw-r--r--
init1.src
1.46
KB
-rw-r--r--
init2.src
3.51
KB
-rw-r--r--
issue23203a.src
306
B
-rw-r--r--
issue23203b.src
306
B
-rw-r--r--
issue25008a.src
260
B
-rw-r--r--
issue25008b.src
198
B
-rw-r--r--
issue26390.src
241
B
-rw-r--r--
issue28251.src
1.23
KB
-rw-r--r--
issue6977.src
2.33
KB
-rw-r--r--
issues.src
9.83
KB
-rw-r--r--
labels.src
3.25
KB
-rw-r--r--
literals.src
2.35
KB
-rw-r--r--
methodsets.src
3.16
KB
-rw-r--r--
shifts.src
12.02
KB
-rw-r--r--
stmt0.src
17.79
KB
-rw-r--r--
stmt1.src
3.31
KB
-rw-r--r--
vardecl.src
5.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : conversions2.src
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test various valid and invalid struct assignments and conversions. // Does not compile. package conversions2 type I interface { m() } // conversions between structs func _() { type S struct{} type T struct{} var s S var t T var u struct{} s = s s = t // ERROR "cannot use .* in assignment" s = u s = S(s) s = S(t) s = S(u) t = u t = T(u) } func _() { type S struct{ x int } type T struct { x int "foo" } var s S var t T var u struct { x int "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = S(s) s = S(t) s = S(u) t = u // ERROR "cannot use .* in assignment" t = T(u) } func _() { type E struct{ x int } type S struct{ x E } type T struct { x E "foo" } var s S var t T var u struct { x E "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = S(s) s = S(t) s = S(u) t = u // ERROR "cannot use .* in assignment" t = T(u) } func _() { type S struct { x struct { x int "foo" } } type T struct { x struct { x int "bar" } "foo" } var s S var t T var u struct { x struct { x int "bar" } "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = S(s) s = S(t) s = S(u) t = u // ERROR "cannot use .* in assignment" t = T(u) } func _() { type E1 struct { x int "foo" } type E2 struct { x int "bar" } type S struct{ x E1 } type T struct { x E2 "foo" } var s S var t T var u struct { x E2 "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = S(s) s = S(t /* ERROR "cannot convert" */ ) s = S(u /* ERROR "cannot convert" */ ) t = u // ERROR "cannot use .* in assignment" t = T(u) } func _() { type E struct{ x int } type S struct { f func(struct { x int "foo" }) } type T struct { f func(struct { x int "bar" }) } var s S var t T var u struct{ f func(E) } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = S(s) s = S(t) s = S(u /* ERROR "cannot convert" */ ) t = u // ERROR "cannot use .* in assignment" t = T(u /* ERROR "cannot convert" */ ) } // conversions between pointers to structs func _() { type S struct{} type T struct{} var s *S var t *T var u *struct{} s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t) s = (*S)(u) t = u // ERROR "cannot use .* in assignment" t = (*T)(u) } func _() { type S struct{ x int } type T struct { x int "foo" } var s *S var t *T var u *struct { x int "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t) s = (*S)(u) t = u // ERROR "cannot use .* in assignment" t = (*T)(u) } func _() { type E struct{ x int } type S struct{ x E } type T struct { x E "foo" } var s *S var t *T var u *struct { x E "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t) s = (*S)(u) t = u // ERROR "cannot use .* in assignment" t = (*T)(u) } func _() { type S struct { x struct { x int "foo" } } type T struct { x struct { x int "bar" } "foo" } var s *S var t *T var u *struct { x struct { x int "bar" } "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t) s = (*S)(u) t = u // ERROR "cannot use .* in assignment" t = (*T)(u) } func _() { type E1 struct { x int "foo" } type E2 struct { x int "bar" } type S struct{ x E1 } type T struct { x E2 "foo" } var s *S var t *T var u *struct { x E2 "bar" } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t /* ERROR "cannot convert" */ ) s = (*S)(u /* ERROR "cannot convert" */ ) t = u // ERROR "cannot use .* in assignment" t = (*T)(u) } func _() { type E struct{ x int } type S struct { f func(struct { x int "foo" }) } type T struct { f func(struct { x int "bar" }) } var s *S var t *T var u *struct{ f func(E) } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t) s = (*S)(u /* ERROR "cannot convert" */ ) t = u // ERROR "cannot use .* in assignment" t = (*T)(u /* ERROR "cannot convert" */ ) } func _() { type E struct{ x int } type S struct { f func(*struct { x int "foo" }) } type T struct { f func(*struct { x int "bar" }) } var s *S var t *T var u *struct{ f func(E) } s = s s = t // ERROR "cannot use .* in assignment" s = u // ERROR "cannot use .* in assignment" s = (*S)(s) s = (*S)(t) s = (*S)(u /* ERROR "cannot convert" */ ) t = u // ERROR "cannot use .* in assignment" t = (*T)(u /* ERROR "cannot convert" */ ) }
Close