Ian Lance Taylor
f8d7f5bd81
Don't use a type guard with a type which is not an interface.
...
R=r,gri
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=18781
CL=18785
2008-11-07 11:44:15 -08:00
Ken Thompson
9eebfe6c3b
types
...
R=r
OCL=18034
CL=18034
2008-10-29 14:09:32 -07:00
Ken Thompson
24eb30b5d6
test
...
R=r
OCL=17855
CL=17855
2008-10-25 15:26:35 -07:00
Ian Lance Taylor
22a6747999
Per discussion earlier today with r and gri: when an interface
...
object has a value of type "int", it should not automatically
convert to type "int32". That is, the type alias "int" should
be regarded as having been defined as though "type int int32"
appeared outside of the package, and as therefore being a
different type from "int32".
R=ken
DELTA=21 (20 added, 0 deleted, 1 changed)
OCL=17587
CL=17842
2008-10-24 22:40:32 -07:00
Ken Thompson
8973e1ffb7
basic types/interfaces test
...
R=r
OCL=17247
CL=17247
2008-10-15 17:15:47 -07:00
Russ Cox
e6cd1e445b
remove uses of *T as an implicit forward declaration of T
...
R=gri,r
OCL=16648
CL=16652
2008-10-07 12:59:54 -07:00
Russ Cox
983f06bdb6
update code to follow new semicolon rules:
...
* 1. all statements and declarations are terminated by semicolons
* 2. semicolons can be omitted at top level.
* 3. semicolons can be omitted before and after the closing ) or }
* on a list of statements or declarations.
/home/rsc/bin/addsemi and then diff+tweak.
R=r,gri
OCL=16620
CL=16643
2008-10-07 12:31:31 -07:00
Ian Lance Taylor
08df4dcf7d
Storing an out of range constant into a variable should
...
ideally cause the compiler to give an error. Right now 6g
warns about large shifts but does not give an error. This CL
removes the out of range shift from shift.go, so that it will
work with gccgo, and adds a test case in bugs/ to be fixed at
a later date.
R=ken,r
DELTA=23 (9 added, 14 deleted, 0 changed)
OCL=16085
CL=16088
2008-09-29 11:03:21 -07:00
Ken Thompson
8a9752dcfb
another async select bug
...
R=r
OCL=15599
CL=15599
2008-09-20 19:56:40 -07:00
Rob Pike
9ebd9d3b7d
fix some tests
...
R=ken
OCL=15598
CL=15598
2008-09-20 15:16:48 -07:00
Ken Thompson
934a19fa4b
channel test
...
R=r
OCL=15587
CL=15587
2008-09-19 20:52:59 -07:00
Ken Thompson
0194aaf918
T{} syntax for constructors
...
T(expression) for conversion
FUNC keyword no longer a type
R=r
OCL=14887
CL=14887
2008-09-05 19:50:34 -07:00
Rob Pike
e1e53e35a4
update tests
...
add commands to two new ken tests
R=gri
OCL=14751
CL=14751
2008-09-03 13:21:05 -07:00
Ken Thompson
944ad62ecd
fix type of (1<<x)
...
R=r
OCL=14656
CL=14656
2008-08-29 13:24:53 -07:00
Rob Pike
3308eb4406
delete redundant bug.
...
fix typo.
add scoping bug.
R=gri
OCL=14349
CL=14349
2008-08-20 15:46:05 -07:00
Ken Thompson
4797523572
fixed bugs in const/case
...
R=r
DELTA=138 (75 added, 12 deleted, 51 changed)
OCL=14129
CL=14131
2008-08-12 14:04:03 -07:00
Rob Pike
bc2f5f1dce
fix bug depot:
...
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)
R=gri
OCL=14106
CL=14106
2008-08-11 22:07:49 -07:00
Rob Pike
69353f0a50
fix erroneous code in bugs; reported by iant.
...
also rob1.go runs, so fix its status.
R=gri,iant
OCL=13957
CL=13957
2008-08-07 13:27:58 -07:00
Rob Pike
6810f39edf
test update. also remove two duplicates
...
SVN=126336
2008-07-08 12:22:21 -07:00
Rob Pike
c38391ad7b
test update. some tests now run; no change to output
...
SVN=126328
2008-07-08 11:30:20 -07:00
Rob Pike
bf14ef61fc
test cleanup
...
SVN=126120
2008-07-07 10:03:10 -07:00
Rob Pike
34cb7c299e
export sys.exit
...
update tests to use exit rather than return
ignore return value from main (actually done in prior CL)
SVN=125173
2008-06-27 14:15:06 -07:00
Ken Thompson
a77f7b2497
remove receclarations from tests
...
that are supposed to succeed
SVN=124018
2008-06-21 15:08:04 -07:00
Rob Pike
3df8e0a166
clean up ken/rob2.go to eliminate a few workarounds
...
SVN=123442
2008-06-18 14:47:46 -07:00
Rob Pike
e8010b38e4
add bug045: bad nil assigning into array
...
update robfunc.go (BUG comment deleted)
SVN=122143
2008-06-11 10:33:20 -07:00
Rob Pike
814896ea5f
update lots of tests
...
SVN=121624
2008-06-08 19:21:16 -07:00
Rob Pike
094ee44b32
check in the bugs and fixed bugs
...
SVN=121543
2008-06-06 16:56:18 -07:00
Rob Pike
ab34d15f69
add ken's tests.
...
update run to work with multiple directories
SVN=121485
2008-06-06 14:27:34 -07:00