Various with statics and PreErrorChecking
commit94e89f76869baef5ecc08814a6ca25eeaeae48b7
authorneoeinstein <neoeinstein@2c1201b4-01cd-e047-a400-b836ae1fbc61>
Sat, 17 Nov 2007 05:15:04 +0000 (17 05:15 +0000)
committerneoeinstein <neoeinstein@2c1201b4-01cd-e047-a400-b836ae1fbc61>
Sat, 17 Nov 2007 05:15:04 +0000 (17 05:15 +0000)
treeb8358797ade6efa6113744086d2b6d50e14ab2fa
parent6e7b641cdc00418dcb212b404c97e50bcb4d26da
Various with statics and PreErrorChecking
* BOO-916: Disallowed 'abstract final'; emit warning on 'static' keyword modifying member of static class
* BOO-918: Static classes make members static.
* Various improved checks on modifiers for various types, including modifier checking on structs.
* 'static' disallowed on struct and interface definition
* Default constructor is ^not^ added to constructorless static classes (They can't be instantiated)

git-svn-id: https://svn.codehaus.org/boo/boo/trunk@2755 2c1201b4-01cd-e047-a400-b836ae1fbc61
16 files changed:
src/Boo.Lang.Compiler/CompilerErrorFactory.cs
src/Boo.Lang.Compiler/CompilerWarningFactory.cs
src/Boo.Lang.Compiler/Steps/NormalizeTypeAndMemberDefinitions.cs
src/Boo.Lang.Compiler/Steps/PreErrorChecking.cs
src/Boo.Lang/Resources/strings.txt
tests/testcases/errors/BCE0131-2.boo [new file with mode: 0644]
tests/testcases/errors/BCE0150-1.boo
tests/testcases/errors/BCE0151-1.boo [new file with mode: 0644]
tests/testcases/errors/BCE0151-2.boo [new file with mode: 0644]
tests/testcases/errors/BCE0152-1.boo [deleted file]
tests/testcases/errors/BCE0153-1.boo [deleted file]
tests/testcases/integration/types/static-1.boo [new file with mode: 0644]
tests/testcases/integration/types/static-2.boo [new file with mode: 0644]
tests/testcases/warnings/BCW0013-1.boo [new file with mode: 0644]
tests/testcases/warnings/BCW0013-2.boo [new file with mode: 0644]
tests/testcases/warnings/BCW0013-3.boo [new file with mode: 0644]