Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370066 - trait proposal
Summary: trait proposal
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 08:38 EST by itay friedman CLA
Modified: 2020-05-14 11:17 EDT (History)
3 users (show)

See Also:


Attachments
example test (656 bytes, application/octet-stream)
2012-01-29 08:38 EST, itay friedman CLA
jacek.pospychala: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description itay friedman CLA 2012-01-29 08:38:31 EST
Created attachment 210243 [details]
example test

traits aren't proposed in a class use... statement

example test attached produces:

junit.framework.AssertionFailedError: 
EXPECTED COMPLETIONS LIST:
-----------------------------
type(TESTA)
type(TESTB)

ACTUAL COMPLETIONS LIST:
-----------------------------
Comment 1 Roy Ganor CLA 2012-02-01 06:47:41 EST
I think that this is the bug:

<?php
namespace One {
	trait Dtest {
		function foo1() {
			echo 44;
		}
	}
	class Agree {
		use D;
	}
	function funky(){
		return 0;
	}
}
namespace foo {
use One;

class B {
	use Dte|
}

}
?>

The given example is a simple (not php 5.4 related)
Comment 2 Roy Ganor CLA 2012-02-01 07:07:34 EST
please disregard my last comment it's related to another issue
Comment 3 Zhongwei Zhao CLA 2012-02-06 23:00:05 EST
fixed
Comment 4 Sylvia Tancheva CLA 2012-07-06 10:23:53 EDT
Verified. Closing
Ilina Stefanova