[Mono-list] [PATCH] Bug #26974 Struct constructor invocations not typechecking
Andrew Birkett
adb@tardis.ed.ac.uk
Wed, 26 Jun 2002 17:19:43 +0100 (BST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-851401618-1025108383=:28427
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
I entered this bug into bugzilla yesterday. This patch should fix it (at
least, I've tested it and it appears to fix it). I've also added closing
brackets to some comments, since they confused emacs and stopped the "go
to matching brace" stuff working.
I've attached the patch and a new test for mcs/errors.
Andrew
- www.tardis.ed.ac.uk/~adb -
---559023410-851401618-1025108383=:28427
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch-struct-ctr
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GS4.4.33.0206261719430.28427@omega.tardis.ed.ac.uk>
Content-Description: Patch for struct contructor invocation
Content-Disposition: attachment; filename=patch-struct-ctr
SW5kZXg6IGVycm9ycy9DaGFuZ2VMb2cNCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0NClJDUyBmaWxlOiAvbW9uby9tY3MvZXJyb3JzL0NoYW5nZUxvZyx2DQpy
ZXRyaWV2aW5nIHJldmlzaW9uIDEuMQ0KZGlmZiAtdSAtcjEuMSBDaGFuZ2VM
b2cNCi0tLSBlcnJvcnMvQ2hhbmdlTG9nCTI1IEp1biAyMDAyIDE5OjIzOjE0
IC0wMDAwCTEuMQ0KKysrIGVycm9ycy9DaGFuZ2VMb2cJMjYgSnVuIDIwMDIg
MTY6MDk6MTEgLTAwMDANCkBAIC0xLDMgKzEsNyBAQA0KKzIwMDItMDYtMjYg
ICAgPGFkYkB0YXJkaXMuZWQuYWMudWs+DQorDQorCSogY3MxNTAxLTMuY3M6
IEFkZGVkIG5ldyB0ZXN0IGZvciBzdHJ1Y3QgY3RyIHR5cGVjaGVja3MuDQor
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QkgICAgICAgIk5ldyBpbnZvY2F0aW9u
OiBDYW4gbm90IGZpbmQgYSBjb25zdHJ1Y3RvciBmb3IgIiArDQotCQkJCSAg
ICAgICAidGhpcyBhcmd1bWVudCBsaXN0Iik7DQotCQkJCXJldHVybiBudWxs
Ow0KKw0KKwkJCWlmIChtZXRob2QgPT0gbnVsbCkgeyANCisgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIGlmICghaXNfc3RydWN0IHx8IEFyZ3Vt
ZW50cy5Db3VudCA+IDApIHsNCisgICAgICAgIAkJCQlFcnJvciAoMTUwMSwg
bG9jLA0KKwkgICAgICAgIAkJCSAgICAgICAiTmV3IGludm9jYXRpb246IENh
biBub3QgZmluZCBhIGNvbnN0cnVjdG9yIGZvciAiICsNCisJCSAgICAgICAg
CQkgICAgICAgInRoaXMgYXJndW1lbnQgbGlzdCIpOw0KKwkJCSAgICAgICAg
CXJldHVybiBudWxsOw0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgfQ0KIAkJCX0NCiAJCQlyZXR1cm4gdGhpczsNCiAJCX0NCkBAIC01MjY3
LDcgKzUyNjksNyBAQA0KIAkJew0KIAkJCS8vDQogCQkJLy8gV2UgYXJlIHRo
ZSBzb2xlIHVzZXJzIG9mIFJlc29sdmVXaXRoU2ltcGxlTmFtZSAoaWUsIHRo
ZSBvbmx5DQotCQkJLy8gb25lcyB0aGF0IGNhbiBjb3BlIHdpdGggaXQNCisJ
CQkvLyBvbmVzIHRoYXQgY2FuIGNvcGUgd2l0aCBpdCkNCiAJCQkvLw0KIAkJ
CUV4cHJlc3Npb24gb3JpZ2luYWwgPSBleHByOw0KIAkJCWV4cHIgPSBleHBy
LlJlc29sdmVXaXRoU2ltcGxlTmFtZSAoZWMpOw0K
---559023410-851401618-1025108383=:28427
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="cs1501-3.cs"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GS4.4.33.0206261719431.28427@omega.tardis.ed.ac.uk>
Content-Description: New test for mcs/tests
Content-Disposition: attachment; filename="cs1501-3.cs"
Ly8gQ1MxNTAxOiBObyBvdmVybG9hZCBmb3IgbWV0aG9kICdYJyB0YWtlcyAn
MicgYXJndW1lbnRzDQ0KcHVibGljIHN0cnVjdCBYIHsNDQogICAgICAgIHB1
YmxpYyBYKGludCBpKSB7IH0NDQogICAgICAgIA0NCiAgICAgICAgcHVibGlj
IHN0YXRpYyB2b2lkIE1haW4oKSB7DQ0KICAgICAgICAgICAgICAgIFggeCA9
IG5ldyBYKCJmb28iLCAiYmFyIik7DQ0KICAgICAgICB9DQ0KfQ0NCg==
---559023410-851401618-1025108383=:28427--