• Robert Griesemer's avatar
    go spec: conversion types starting with "func" must be parenthesized · 3188ffc9
    Robert Griesemer authored
    Also: Be explicit what operator means with respect to conversion types.
    
    The parenthesis requirement is a language change. At the moment,
    literal function types in conversions that cannot possibly be
    followed by a '(' don't need parentheses. For instance:
    
            func(int)int(x)  ->  same as (func(int)int)(x)
            func()()(x)      ->  same as (func())(x)
    
    but:
    
            func(int)(x)	 ->  could be func(int)x {...}
    
    Fixes #4109.
    
    R=rsc, r, iant, ken, iant
    CC=golang-dev
    https://golang.org/cl/6584065
    3188ffc9
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...