Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(20)

Issue 10622043: code review 10622043: go.tools/ssa: emit ChangeType when using method as func... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by adonovan
Modified:
12 years, 9 months ago
Reviewers:
gri
CC:
gri, golang-dev
Visibility:
Public.

Description

go.tools/ssa: emit ChangeType when using method as function in f := T.meth. Previously: typeOf(f).Signature.Recv == T Now: typeOf(f).Signature.Params.At(0) == T Added test. BUG=5781

Patch Set 1 #

Patch Set 2 : diff -r 35cadadd0c32 https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 35cadadd0c32 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M ssa/builder.go View 1 1 chunk +1 line, -1 line 0 comments Download
M ssa/emit.go View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ssa/interp/testdata/boundmeth.go View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 3
gri
LGTM
12 years, 9 months ago (2013-06-26 17:12:26 UTC) #1
adonovan
Hello gri@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
12 years, 9 months ago (2013-06-26 17:18:29 UTC) #2
adonovan
12 years, 9 months ago (2013-06-26 17:18:33 UTC) #3
*** Submitted as
https://code.google.com/p/go/source/detail?r=43cab0702d88&repo=tools ***

go.tools/ssa: emit ChangeType when using method as function in f := T.meth.

Previously: typeOf(f).Signature.Recv == T
       Now: typeOf(f).Signature.Params.At(0) == T

Added test.

BUG=5781

R=gri
CC=golang-dev
https://codereview.appspot.com/10622043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b