facebook / facebook/hhvm

__Native("ActRec") attribute appears to wrongly stick to following methods

Open
#7,700 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Observed on HHVM 3.15.3.

In a syslib class of a form:

class C {
<<__Native("ActRec")>>
public function __construct(mixed $x);

<<__Native>>
public function test(mixed $a, mixed $b);
}

method "C->test", when implemented with non-ActRec native prototype receives junk parameters, as if "ActRec" attribute just fell through from the constructor definition above.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.